<style>
  .__MESSAGE_CLASS__ {
    border: none;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, .12);
    border-radius: 4px;
    position: fixed;
    z-index: 100000;
    top: 20px;
    left: 0;
    padding: 10px 20px;
    margin: auto;
    background: #f4f4f5;
    color: #909399;
  }

  .__MESSAGE_CLASS__[data-type="success"] {
    background: rgb(239.8, 248.9, 235.3);
    color: #67c23a;
  }

  .__MESSAGE_CLASS__[data-type="error"] {
    background: #fef0f0;
    color: #f56c6c;
  }

  .__MESSAGE_CLASS__[data-type="warn"] {
    background: #fdf6ec;
    color: #e6a23c;
  }
</style>

<dialog open class="__MESSAGE_CLASS__" data-type="{type}">
  <div class="content">{message}</div>
</dialog>
